package com.itcast.fjs.feign.fallback;

import com.itcast.fjs.feign.UserClient;
import org.springframework.stereotype.Component;

/**
 * @author feng js
 */
@Component
public class UserClientFallback implements UserClient {
    @Override
    public String findUser(Integer id) {
        return "feign的服务降级:  对不起网络出现异常，请稍后重试";
    }
}
